import {apilink} from "@/api/api.js"
export let publicx = {
    state:{
        publicinfo:""
    },
    mutations: {
        xiugai(state,payload){
            state.publicinfo=payload
        }
    },
    actions: {
        publicinfo(context){
            apilink("/get_public","get").then((ok)=>{
                console.log(ok.data.public)
                context.commit("xiugai",ok.data.public)
            }).catch((err)=>{
                alert("数据读取失败")
                console.log(err)
            })

            
        }
    }
}